how to use for each with nested array

visit shbcf.ru